#!/bin/bash

#批量修改文件名称

old=$(find /opt/cd/ -name "*.txt")

for i in $old
    do
    
    new=${i/txt/html}
    mv $i $new
    done

